package com.example.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import com.example.domain.Business;
import com.example.mapper.BusinessMpper;
import com.example.service.BusinessService;
import com.example.utils.config.DBTypeEnum;
import com.example.utils.config.MyDataSource;

@Service
@Transactional
public class BusinessServiceImp implements BusinessService{

	@Autowired
    private BusinessMpper businessMpper;

    @Override
    
    public List<Business> findAll(@RequestBody Map<String,Object> reqMap) {
    	String startData = reqMap.get("startData").toString();
    	String endData = reqMap.get("endData").toString();
        return businessMpper.findAll(startData, endData);
    }

}
